package STUDENT.TRANDAODAIVI.ARRAY;
class tinh1{
	
		public static int matrix(int[] array1, int[] array2, int[] array3, int[] array4){
		int[] array=null;
		int sum1=0,sum2=0,sum3=0,sum4=0;
		for (int i=0;i<array1.length;i++){
			sum1=sum1+array1[i];
		}
		for (int i=0;i<array2.length;i++){
			sum2=sum2+array2[i];
		}
		for (int i=0;i<array3.length;i++){
			sum3=sum3+array3[i];
		}
		for (int i=0;i<array4.length;i++){
			sum4=sum4+array1[i];
		}
		int sum = sum1+sum2+sum3+sum4;
		return sum;
}
}
public  class BT7 {
	public static void main(String[] args) {
	int[] array1={1,2,4,5};
	int[] array2={6,7,8,9};
	int[] array3={10,11,12,13,15};
	int[] array4={14,15,16,17};
	System.out.println(tinh1.matrix(array1, array2, array3, array4));
}
}
